Reset and retrieve the root password locally in Linux (CentOS and Ubuntu)
Speaking of system passwords, it may be the biggest headache for administrators. If there are many internal services, You need to record a lot of passwords. Of course, the
In Ubuntu, the sudoers permission cannot be changed by mistake (you can retrieve the sudo permission when you forget the root password). because the sudoers permission is modified, sudo cannot be used, the Ubuntu root password is not set, and the
Speaking of system passwords, it may be the biggest headache for administrators. If there are many internal services, You need to record a lot of passwords. Of course, the possibility of forgetting the password is also not ruled out. We have already
In Ubuntu, the sudoers permission cannot be changed by mistake (you can retrieve the sudo permission when you forget the root password). Because the sudoers permission is modified, sudo cannot be used, it happens that the Ubuntu root password is not
After installing Ubuntu, I suddenly realized that I didn't set the root password. without knowing the password, I could not access the root user. The default root password of Ubuntu is random, that is, a new root password is generated every time you
Retrieve root password locally from Linux (Centos, Ubuntu)Speaking of the system password, perhaps the administrator is the most headache, if the internal service more, need to record a lot of passwords. Of course, do not rule out the possibility of
I used to lose the password of a test machine. Fortunately, Ubuntu supports password retrieval, but this also indicates a problem. Once Ubuntu is obtained, all the security mechanisms completely disappear. The following describes how to retrieve the
Unix-like system, the root password is very important, the loss of the root password, meaning that the system will face replacement.
In order to keep the system, summed up several ways to retrieve the root password, in case of emergency.
Method One:
What is the root password in ubuntu? by default, the root password does not start ubuntu. you can use sudo to execute shutdownwww.2cto. comroot to retrieve sudopasswdroot, enter your password at installation, and set the root password. Author ghmin
After installing Ubuntu, I suddenly realized that I didn't set the root password. Without knowing the password, I could not access the root user.The Default root Password of Ubuntu is random, that is, a new root password is generated every time you
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.